import 'amfe-flexible';
import Vue from 'vue';
import App from './App';
import router from './router';
import store from './store';
import './permission'
import 'vant/lib/index.css'
import '@/assets/css/layout.scss';
import directive from '@/directive/index.js';
import http from '@/assets/js/http.js'
import util from '@/assets/js/util.js'
import verify from '@/assets/js/verify.js'
import icon from '@/assets/js/icon.js'

Vue.prototype.$http = http // 请求方法
Vue.prototype.$util = util // 工具集合
Vue.prototype.$verify = verify // 表单验证
Vue.prototype.$icon = icon // 静态图标


import PageMain from '@/components/PageMain';
import FlyUpload from '@/components/FlyUpload';
import PopupPicker from '@/components/PopupPicker';
import FlyPicker from '@/components/FlyPicker';
// 全局组件挂载
Vue.component('PageMain', PageMain);
Vue.component('FlyUpload', FlyUpload);
Vue.component('PopupPicker', PopupPicker);
Vue.component('FlyPicker', FlyPicker);

import Vant from 'vant'
Vue.use(Vant)
Vue.use(directive)


new Vue({
  router,
  store,
  el: '#app',
  render: h => h(App)
});

